package com.aizhixin.test.question.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aizhixin.test.question.dao.AllAnswerRecordDAO;
import com.aizhixin.test.question.dto.AllAnswerRecordDTO;

@Service
@Transactional
public class AllAnserService {
/*
 * 根据用户ID查询该用户的答题汇总表
 */
	@Autowired
	private AllAnswerRecordDAO allAnswerRecordDAO;
	public List<AllAnswerRecordDTO> getAllAnserRecordByUserId(Long userId){
		return allAnswerRecordDAO.getuserEveryDayAnserImforMation(userId);
	}
}
